//
//  AlertView.h
//  坠落的警告视图
//
//  Created by mac on 14-1-15.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FatherBarController.h"
#import "UMSocialSnsPlatformManager.h"
//#import "UMSocialAccountEntity.h"
#import "UMSocialAccountManager.h"

#define kAlertWidth [UIScreen mainScreen].bounds.size.width - ([UIScreen mainScreen].bounds.size.width *0.09*2 )  //警告窗口宽度
#define kAlertHeight [UIScreen mainScreen].bounds.size.height - ([UIScreen mainScreen].bounds.size.height *0.15*2 )   //警告窗口宽度
#define kTitleYOffset 0.0f   //文字提示高度
#define kTitleHeight 25.0f   //提示两个字高度
// RGB颜色转换（16进制->10进制）
#define UIColorFromRGB(rgbValue)\
\
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 \
alpha:1.0]


#define kContentOffset 30.0f   //内容偏移量
#define kBetweenLabelOffset 20.0f
#define kSingleButtonWidth 160.0f
#define kCoupleButtonWidth 107.0f
#define kButtonHeight 40.0f
#define kButtonBottomOffset 10.0f
#define MAIN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define MAIN_HEIGHT  [UIScreen mainScreen].bounds.size.height
@interface AlertView : UIView

typedef void (^LoginBlock)(NSString *usid,NSString *loginType);
typedef void (^RegisterBlock)();

@property (nonatomic, strong) UIImageView *logoImageView;
@property (nonatomic, strong) UILabel *alertTitleLabel;
@property (nonatomic, strong) UILabel *alertContentLabel;
@property (nonatomic, strong) UIButton *Btn;

@property (nonatomic ,strong) UIButton *login_but;
@property (nonatomic ,strong) UIButton *register_but;
@property (nonatomic ,strong) UILabel *agreement_label;
@property (nonatomic ,strong) UIImageView *agreement_image;
@property (nonatomic ,strong) UIView *backImageView;
@property (nonatomic ,strong) UIImageView *zuo;
@property (nonatomic ,strong) UIImageView *you;
@property (nonatomic ,strong) UILabel *others_label;
@property (nonatomic ,strong) UIButton *QQ;
@property (nonatomic ,strong) UIButton *weibo;
@property (nonatomic ,strong) UIButton *weixin;

@property (nonatomic,strong)UINavigationController *Controller;
@property (nonatomic ,strong)FatherBarController *tabba;

@property (nonatomic, copy) LoginBlock loginBlock;
@property (nonatomic, copy) RegisterBlock registerBlock;

- (void)show;
- (id)initWithTitle:(NSString *)title contentText:(NSString *)content ButtonTitle:(NSString *)Title userAgreement:(void(^)())userAgreement;
@end
